﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    CodeBehind="ServiceReportAllJobs.aspx.cs" Inherits="SEP.Admin.ServiceReportAllJobs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphTitle" runat="server">
    All Jobs
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphBody" runat="server">
    <asp:GridView ID="grvJobs" runat="server" AutoGenerateColumns="false" EmptyDataText="There aren't any jobs."
        DataKeyNames="ID">
        <Columns>
            <asp:TemplateField HeaderText="Name">
                <ItemTemplate>
                    <asp:HyperLink ID="hyperlinkName" runat="server" NavigateUrl='<%# DataBinder.Eval(Container.DataItem, "ID", "~/Admin/ServiceReportView.aspx?jobID={0}") %>'
                        Text='<%# DataBinder.Eval(Container.DataItem, "DESCRIPTION") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Date" DataField="USERDATEASSTRING" />
            <asp:BoundField HeaderText="Service reports" DataField="NUMBEROFSERVICEREPORTS" />
            <asp:TemplateField HeaderText="Sent to Ian">
                <ItemTemplate>
                    <asp:Image ID="imgSentToIan" runat="server" ImageUrl="~/Images/check_20x15.png" Visible='<%#DataBinder.Eval(Container.DataItem, "SENTTOIAN") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Sent to Jenny">
                <ItemTemplate>
                    <asp:Image ID="imgSentToJenny" runat="server" ImageUrl="~/Images/check_20x15.png"
                        Visible='<%#DataBinder.Eval(Container.DataItem, "SENTTOJENNY") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Archived">
                <ItemTemplate>
                    <asp:Image ID="imgArchived" runat="server" ImageUrl="~/Images/check_20x15.png"
                        Visible='<%#DataBinder.Eval(Container.DataItem, "ARCHIVED") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Archive date" DataField="ARCHIVEDATEASSTRING" />
        </Columns>
    </asp:GridView>
</asp:Content>
